package edu.sctu.zhengsenwen.month201506.day20150611.Array;

/**
 * Created by user15 on 2015/6/12.
 */
public class C04E04 {

    public static void main(String[] args) {

        char a[][];

        a = new char[5][];

        a[0] = new char[1];
        a[1] = new char[3];
        a[2] = new char[5];
        a[3] = new char[7];
        a[4] = new char[9];

        a[0][0] = 'a';

        for(int i = 0;i<3;i++){

            a[1][i] = 'b';
        }

        for(int i = 0;i<5;i++){

            a[2][i] = 'c';
        }

        for(int i = 0;i<7;i++){

            a[3][i] = 'd';
        }


        for(int i = 0;i<9;i++){

            a[4][i] = 'e';
        }

        for(int i = 0;i<5;i++){

            for(int j = 15-i;j>0;j--){
                System.out.print(" ");

            }
            for(int k = 0;k<=2*i;k++) {
                System.out.print(a[i][k]);
            }
            System.out.println();
        }
    }
}
